body {
    margin: 20px;
}
form {
    min-width: 1630px;
}


/* 进度条文案 */
.loading-content-text {
    float: left;
    position: relative;
    top: -1px;
    left: 10px;
    z-index: 100;
    color: white;
}


/* 图标设置 */
.icon-delete,
.icon-add,
.icon-copy {
    font-size: 30px;
    cursor: pointer;
}
.icon-delete {
    color: #FF5722;
}
.icon-add {
    color: #009688;
}
.icon-copy {
    color: #01AAED;
}
.icon-loading {
    color: #1E9FFF;
    cursor: wait;
}
.icon-warn {
    line-height: 14px;
    font-size: 18px;
    font-style: normal;
    font-weight: bold;
    color: #FFB800;
}
    


/* 因为没有合适的icon，所以手工制作一个“复制”图标 */
.icon-copy-container {
    position: relative;
    top: -5px;
    zoom: 0.85;
}
/* 需要一个icon作为背景（两个icon重复才能组成“复制”图标） */
.icon-copy--bg {
    position: relative;
}
/* 用一个跟背景色一样的伪元素 来“盖住” 背景icon的右下方边框 */
.icon-copy--bg::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 0;
    bottom: 0;
    z-index: 5;
    background: #f2f2f2;
}
/* 前景icon，设置宽度为0，不占用多余空间。再利用相对定位“盖”在 背景icon 上 */
.icon-copy + .icon-copy {
    display: inline-block;
    position: relative;
    left: -28px;
    top: 5px;
    z-index: 10;
    width: 0;
}
/* 船务信息的复制按钮 背景为白色 */
.shipping-icon-container .icon-copy--bg::before {
    background: white;
}


/* 船务信息、箱型信息、装卸地点 图标位置布局 */
.shipping-icon-container {
    margin-left: 20px;
}
.box-line-container .layui-icon {
    margin-left: 10px;
    line-height: 38px;
}
.address-icon-container {
    position: absolute;
    right: 15px;
    z-index: 10;
}

/* 船务信息中 S/O No 附件布局 */
.so-item-container input {
    padding-right: 100px;
}
.so-attachment-container {
    position: absolute;
    right: 6px;
    top: 50%;
    margin-top: -9px;
    zoom: 1.5;
}
.so-attachment-container i {
    line-height: 16px;
    font-size: 16px;
}
/* 链接、查看、删除 的图标样式 */
.so-attachment-container .icon-link,
.so-attachment-container .icon-link-delete,
.so-attachment-container .icon-link-view {
    cursor: pointer;
}
.so-attachment-container .icon-link {
    font-size: 14px;
    /* color: #70a9e2; */
    color: #94c7fa;
}
.so-attachment-container .icon-link-delete {
    color: #FF5722;
}
.so-attachment-container .icon-link-view {
    color: #01AAED;
}
.so-attachment-container .icon-warn {
    font-size: 14px;
    cursor: default;
}
/* 附件上传状态图标 */
.so-attachment-item .icon-loading,
.so-attachment-item .icon-warn,
.attachment-item--loading .icon-link-delete,
.attachment-item--loading .attachment-name,
.attachment-item--fail .icon-link-delete,
.attachment-item--fail .attachment-name {
    display: none;
}
.attachment-item--loading .icon-loading,
.attachment-item--fail .icon-warn {
    /* 如果设置为 inline 的话，则无法应用CSS3动画效果 */
    display: inline-block;
}
/* 上传失败 */
.so-attachment-item .icon-warn {
    padding: 0 2px;
}



/* 船务信息：使用 css计数器 添加序号 */
.shipping-counter-container {
    counter-reset: shipping;
}
.shipping-counter::after {
    /* 隐藏 不在.shipping-counter-container 下的 .shipping-counter */
    display: none;
    counter-increment: shipping;
    /* 计数器序号 使用 小写罗马数字 */
    content: counter(shipping, lower-roman);
    /* content: counter(shipping, upper-roman); */
}
.shipping-counter-container .shipping-counter::after {
    display: inline;
}
/* 装卸地点：使用 css计数器 添加序号 */
.customer-address-container {
    counter-reset: address;
}
.customer-address-counter::after {
    counter-increment: address;
    content: counter(address);
}


/* 因为去掉了 .layui-colla-item 类，所以补充 .customer-address-line 的样式（与 .layui-colla-item 一致） */
.customer-address-line:first-child {
    border-top: none;
}
.customer-address-line {
    border-top: 1px solid #e2e2e2;
}
/* 组件样式重置 */
.customer-address-container .layui-colla-title {
    cursor: default;
}


/* 文件上传/下载样式 */
.file-line {
    box-sizing: border-box;
    min-height: 38px;
    padding: 2px 10px 0 5px;
    /* 与 .layui-input 样式一致 */
    border: 1px solid #e6e6e6;
    background-color: #fff;
    border-radius: 2px;

    line-height: 26px;
}
.file-line:empty {
    padding: 5px 0 0 10px;
}
.file-line:empty::after {
    content: '允许上传多个文件';
    /* margin-left: 10px; */
    color: #c2c2c2;
}
.file-item {
    display: inline-block;
    margin-bottom: 2px;
    padding: 3px 5px 3px 0;
    transition: background .3s linear;
}
.file-item:hover {
    background: #b5eaff;
}
.file-item .icon-file {
    position: relative;
    top: 8px;
    right: -3px;
    margin-left: -5px;
    /* 设置 line-height 避免撑高 默认行高 */
    font-size: 36px;
    line-height: 0;
    color: #14a9da;
}
.file-name,
a.file-name:visited {
    margin-right: 5px;
    color: #999;
}
.file-item:hover a {
    color: #01aaed;
}
a.file-name:hover {
    color: #428bca;
}
.file-item a {
    cursor: default;
}
.file-item a:link {
    cursor: pointer;
}
/* 文件的 “×” 图标 */
.file-item .icon-delete {
    display: inline-block;
    position: relative;
    top: -3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f62f20;
    text-align: center;
    /* 设置 line-height 避免撑高 默认行高 */
    line-height: 0;
    cursor: pointer;
}
.file-item .icon-delete::after {
    content: 'x';
    display: inline-block;
    position: relative;
    top: 2px;
    width: 18px;
    height: 18px;
    font-size: 14px;
    color: white;
}
/* 文件上传状态图标 */
.file-item .icon-loading,
.file-item .icon-warn {
    display: none;
}
.file-item--loading .icon-loading,
.file-item--fail .icon-warn {
    /* 如果设置为 inline 的话，则无法应用CSS3动画效果 */
    display: inline-block;
}
/* 上传中 */
.file-item .icon-loading {
    margin-left: 5px;
}
/* 上传失败 */
.file-item .icon-warn {
    padding: 0 5px;
}

/* 上传、下载 按钮 */
.file-control-group {
    /* 父容器 .layui-input-block 已经默认 position: relative; 了 */
    position: absolute;
    left: 100%;
    top: 50%;
    z-index: 100;
    min-width: 100px;
    margin-top: -10px;
    margin-left: 15px;
}
.file-control-group a {
    margin-right: 5px;
    color: #01aaed;
}
.file-control-group a:hover {
    color: #428bca;
}